package com.boot.dongli.ttl2;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: lkz
 * @Title: TTLTwoConsumMsg
 * @Description: TODO
 * @Date: 2023/10/16 14:17
 */
@Component
@Slf4j
public class TTLTwoConsumMsg {


    @RabbitListener(queues = "ttl.two.queue")
    public void ttlOneMsg(String msg){
        log.info("设置消息过期时间消息成功消费--ttl.two.queue:{}",msg);
    }

}
